<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="../../css/view/global.css">
    <link href="../../css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="../../css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link rel="stylesheet" href="../../css/view/community_shop_page/style.css">
    <link rel="stylesheet" href="../../css/animate.css">
</head>
<body>
    <div class="container animated fadeInUp">
        <div class="third-title position-title">
            <div class="border-left themeBgColor"></div>
            <div class="text">商品管理</div>
            <div class="add_goods_btn themeBgColor" data-type="1" data-target="#goodsModal" data-toggle="modal">添加商品</div>
        </div>
        <div class="line"></div>
        <div class="community-shop-goods">
            <div class="screen">
                <div class="class-screen">
                    <label for="goods_class" class="g_label">商品类别：</label>
                    <select class="g_select themeBorder"  id="goods_class">
                        <!--类别-->
                    </select>
                </div>
                <div class="search">
                    <input type="text" class="search-box themeBorder" placeholder="输入商家名称搜索" id="g_search_input">
                    <div id="g_search_btn" class="search-btn themeBgColor">搜索</div>
                </div>
            </div>
            <div class="table-box">
                <table class="table table-striped">
                    <thead class="themeBgColor" style="color:#fff;">
                    <tr>
                        <th>商品图片</th>
                        <th>商品名称</th>
                        <th>商品价格</th>
                        <th>销量</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody id="product_list">
                        <tr>
                            <td></td>
                            <td></td>
                            <td></td>
                            <td></td>
                            <td></td>
                            <td></td>
                        </tr>
                    </tbody>
                </table>
                <div id="secondHand-page" class="page_div"></div>
            </div>
        </div>
    </div>





<!--add goods modal-->
<div class="modal fade" id="goodsModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="goodsModalLabel"></h4>
            </div>
            <div class="modal-body">
                <div class="form-group">
                    <label for="g_name">商品名称：</label>
                    <input type="text" class="form-control"  placeholder="请输入商品名称" id="g_name">
                </div>

                <div class="form-group">
                    <label for="g_price">商品价格：</label>
                    <input type="text" class="form-control"  placeholder="设置商品价格" id="g_price">
                </div>
                <div class="form-group">
                    <label for="g_old_price">商品原价：</label>
                    <input type="text" class="form-control"  placeholder="设置商品原价" id="g_old_price">
                </div>
                <div class="form-group">
                    <label for="g_kuchun">商品库存：</label>
                    <input type="number" class="form-control"  placeholder="设置商品库存" id="g_kuchun">
                </div>
                <div class="form-group">
                    <label for="g_class">商品类别：</label>
                    <select name="" id="g_class" class="form-control">

                    </select>
                </div>
                <div class="form-group">
                    <label for="g_gg">商品单位：</label>
                    <input type="text" class="form-control"  placeholder="设置商品单位" id="g_gg">
                </div>
                <div class="add-shop-img-btn">
                    <input type="file" accept="image/*" class="file-input" id="goodsImgInput">
                    <input type="hidden" id="goodsImgUrl">
                    <div class="select-img themeBgColor">选择产品图片</div>
                </div>
                <div class="preview-img" id="goodsImgShow">
                    <div>图片预览</div>
                </div>

                <input type="hidden" id="set_type">
                <input type="hidden" id="goods_id">
                <input type="hidden" id="class_id">
            </div>
        </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="button" class="btn themeBgColor" id="submit_goods_btn" data-type="">确认</button>
            </div>
    </div>
</div>
</div>


<script src=".././../js/jquery.min.js"></script>
<script src=".././../js/bootstrap.min.js"></script>
<script src=".././../js/my-js/global.js"></script>
<script src=".././../js/my-js/paging.js"></script>
<script src="../../js/view/community_shop_page/goods_manage.js"></script>
</body>
</html>
